package com.pfsoft.transactiontest.listener;

import com.pfsoft.transactiontest.model.Person;
import com.pfsoft.transactiontest.service.PersonManService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class TestListener implements CommandLineRunner {
    @Autowired
    private PersonManService personManService;

    @Override
    public void run(String... args) throws Exception {
        personManService.personSave();
        System.out.println("任务完成");
    }
}
